home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / apps / 558 / e_edit.txt < prev    next >
Text File  |  1992-03-18  |  18KB  |  311 lines

  1.             Copyright 1991 Sudden Incorporated, Rod Coleman
  2.  
  3.  
  4.  
  5.  
  6.                            Editing Text
  7.  
  8.  
  9.     Editing text is the very essence of any text editor, and that's        
  10. certainly the case with Sudden View.  Editing is where the user's fingers  
  11. spend the most time.  Whether it's original text entry, or needed changes  
  12. made later, the ability to transfer the user's thoughts to the screen is   
  13. what it's all about.                                                       
  14.     
  15.     Editing should not be confused with Copy, Cut, Paste and Move.  These  
  16. functions are really for the arrangement of the text.  If these functions   
  17. are being used to edit characters, in most cases they are misapplied.     
  18.     
  19.     Actual editing is best done with your hands over home row of the       
  20. keyboard.  For this reason, Sudden View assigns the most common editing    
  21. functions to the Power Keys.  These are simply the data keys under the     
  22. left hand in combination with the Control key.  Power Keys are explained   
  23. in the Keyboard Detail section.                                            
  24.  
  25.     Editing can also be done using the conventional cursor, Delete, and    
  26. Insert keys, but the Power Keys are more effective and should be used      
  27. except for the most casual changes.                                        
  28.     
  29.     In either case, this section deals with the actual editing functions   
  30. themselves.  I will cover Implied Editing Action, Deleting and Inserting,  
  31. as well as the Carriage Return, Backspace and Undo keys.  Once you         
  32. understand these functions, they can be applied in any way that you find   
  33. convenient.                                                                
  34.  
  35.  
  36.  
  37.                       Implied Editing Action
  38.  
  39.     As noted before, Sudden View does not have an Insert or Replace        
  40. editing mode.  Editing action is implied by cursor placement.  If the      
  41. cursor is over a space immediately to the left of any text, keyboard entry 
  42. will be inserted, otherwise keyboard entry will replace existing text or   
  43. spaces.                                                                    
  44.  
  45.     The rule may seem a little strange at first, but it actually reflects  
  46. the natural editing process.  For instance, if you drop the cursor over    
  47. the h in the word hot because you want to change it to "cold", just type   
  48. in the word cold.  Implied Editing Action will replace the three letters   
  49. of hot and then insert the last letter of cold without requiring you to    
  50. think about or change modes.                                               
  51.     
  52.     Let's try another example: if you want to add the word very before the 
  53. word cold, just place the cursor to the left of the "c" in "cold".  Now    
  54. type a "space" and the word "very".  Your done!, no modes, no confusion.   
  55. If you want to change a larger word to a smaller one, just place the       
  56. cursor at the beginning of the old word, type in the new word and then use 
  57. the Delete to end of word function.                                        
  58.  
  59.     Implied Editing Action should be effective for about 98% of the        
  60. time.  Unfortunately, there will be cases that you may want to insert text 
  61. where there is no space - Insert key to the rescue.  For the above         
  62. example, just hit the Insert key one time, enter the text, and then hit    
  63. the Delete key to clear any extra spaces or characters.                    
  64.  
  65.     The Insert and Delete keys will allow you to handle any exceptions to  
  66. the rule, but there is an even more direct way to insert only one or two   
  67. characters.  The Alternate key will reverse the logic of Implied Editing   
  68. Action, so that if the cursor is over a character, and you hold the        
  69. Alternate key down while you press any data key, the character will be     
  70. inserted instead of replaced.  This reverse logic also works if you want   
  71. to put a quote mark (') in front of a word.  The Alternate key makes quick 
  72. work of those rare exceptions.                                             
  73.     
  74.     Like most aspects of Live Editing, Implied Editing Action and its      
  75. exceptions are easier to do, than to explain.  Try it a little; after a    
  76. while you won't notice it at all.  You will simply be editing your text.   
  77.  
  78.  
  79.  
  80.                              Deleting Text
  81.  
  82.     It's commonly known that the trick to writing is not knowing what to   
  83. write; it's knowing what to delete.  Since deleting is such an important   
  84. part of editing, Sudden View provides a reasonable set of delete functions 
  85. - and a way to undo them (see the Undo function below).                    
  86.  
  87.     As mentioned before, the Delete key (or corresponding Power Key) will  
  88. delete the character under the cursor.  It also moves the rest of the text 
  89. in the field to the left so that the cursor is now over the next           
  90. character.                                                                 
  91.  
  92.     This is a very normal way to define the Delete key, and allows the     
  93. Delete key to actually be used to do simple text arrangement.  Just place   
  94. the cursor in the left margin and the Delete key will move the text field  
  95. left.                                                                      
  96.  
  97.     The Insert key can be used to push the field back, so between Insert   
  98. and Delete, you can adjust the position of fields.  This is actually much  
  99. easier using the Move function, but it gives you an idea of how these      
  100. functions work.                                                            
  101.  
  102.     Deleting to the end of word (Alternate Delete) works in the same way   
  103. as Delete Character except that it will delete all the way to the next     
  104. space.  It's handy for trimming off the last part of a word that you have  
  105. just changed or quickly zapping a phrase.                                  
  106.     
  107.     Notice that other fields to the right are not affected by these first  
  108. two delete function.  Delete to the end of field (Control Delete) will     
  109. change that.                                                               
  110.  
  111.     If you are in non-wrapped text (gold cursor), Delete to end of field   
  112. will work like Delete to end of word except that it will go all the way to 
  113. the end of the field.  If you hit it again, it will zap the next field;    
  114. well, you get the idea.                                                    
  115.  
  116.     If you are in word-wrapped text (blue cursor), this function (Control  
  117. Delete) becomes Delete to end of sentence and will delete to the space     
  118. just past a period, question mark or exclamation mark.  Try it, it's      
  119. handy.                                                                     
  120.  
  121.     There's only one more delete function left and it works very           
  122. differently from the rest.  Delete line (Shift Delete) does not adjust     
  123. anything sideways.  It zaps the whole line, regardless of content, type or 
  124. length.  Delete line is very clean and simple.                             
  125.  
  126.     Well that's it.  Now you know how to get rid of your text; if you      
  127. need to get some of it back, read on.                                      
  128.  
  129.                               
  130.                               Undo
  131.  
  132.     Just like it says, Undo is the "but, I changed my mind" key for the    
  133. Delete functions.  Just hit it once, and whatever you have just deleted    
  134. will be restored; but be careful, if you hit Undo twice, you will get two  
  135. copies of whatever you deleted.                                            
  136.  
  137.     Undo works for all four types of deletes and may contains multiple     
  138. instances of each.  In other words, if you deleted five characters and     
  139. then two words, Undo will restore it all.  If you move the cursor and do   
  140. more deletes, only the part deleted after the cursor was moved will be     
  141. restored.                                                                  
  142.  
  143.     You also may discover that you can Undo text that was replaced during  
  144. normal editing.  As an example, if you change the word cold to "hot" and   
  145. follow it with a Delete to end of word to zap the last character, the undo 
  146. will restore the entire word cold even though only one character was       
  147. actually deleted.  In other words, the Paste Buffer (which Undo uses)      
  148. captures changes as well as deletes.                                       
  149.     
  150.     The Undo function is just a very simple version of Copy and Paste.  It 
  151. only pops the last thing that you deleted or changed; but the Paste buffer 
  152. actually contains the last twenty events containing more than three        
  153. characters.  If you want to try to recover something you deleted or        
  154. changed a while ago, do the Display Buffer function.  See Arranging Text.  
  155.  
  156.  
  157.  
  158.                             Inserting Lines
  159.  
  160.     Since inserting a space using the Insert key is so simple and natural, 
  161. I won't even bother to explain it (actually, it's described it in the      
  162. Delete section).  Instead I will go right to inserting lines.              
  163.  
  164.     You might think that Insert Line would be as simple as Insert Space;   
  165. but since it is the key to adopting a line format, there are two different 
  166. version of Insert Line.                                                    
  167.  
  168.     Shift Insert (or its Power Key) is the normal Insert Line function.    
  169. Not only does it insert a line, but it also uses the format of the line    
  170. that the cursor was on when you activated the function.  This means that   
  171. if word-wrap or Tabs were set in the old line, the new line will have them 
  172. too.  In general, you don't need to think about this form of Implied       
  173. Formatting; you just use it.                                               
  174.  
  175.     On the other hand, if you want to use a format from another part of    
  176. the file, try Alternate Insert (or its Power Key) after you have "adopted" 
  177. the format by selecting the model line as a block and then escaping (Esc). 
  178. Actually, a double right click or editing of any line will also adopt the  
  179. format of the line in question.                                            
  180.     
  181.     To use this adopted format, just place the cursor at the new location  
  182. and do an Alternate Insert.  The new line will now have the adopted        
  183. format.  If the example line was word wrapped, the new line will be too.   
  184. Again, it's easier to do, than to explain; just try it.                    
  185.     
  186.     
  187.     
  188.     
  189.     
  190.                            Carriage Return
  191.  
  192.     Carriage Return is so simple that most text editing manuals don't      
  193. even bother to describe it; but Sudden View,s Implicit Formatting allows   
  194. for an enhancement of Carriage Return, so I'll fill you in on what it      
  195. does.                                                                      
  196.     
  197.     Normally, when the text cursor is at the end of a line of text,        
  198. Carriage Return will move the cursor to the left most margin, on the line  
  199. below, which it has just inserted.  Or if it is in the middle of a text    
  200. line, it will split the line in two, putting the second half on a new      
  201. line below.  Sudden View works in the same way, if you consider that a     
  202. document can have more than one column or a formatted table of text.       
  203.     
  204.     This means that in certain case, the action of Carriage Return will    
  205. "stay in column" instead of going all the way to the left.  Also, because  
  206. columns need to be somewhat independent, a blank line is only inserted if  
  207. it is needed directly below the column.                                    
  208.     
  209.     For example, if you do a Carriage Return in word-wrapped text, cursor  
  210. placement and line splits will always occur directly below the current     
  211. column. And if there is room below the column, a new line may not be       
  212. inserted.  This keeps adjacent columns from being broken up with blank     
  213. lines.                                                                     
  214.  
  215.     Even in non-wrapped text, this "stay in column" approach is used       
  216. except for one case.  If the cursor is at the end of any non-wrapped text  
  217. field, a standard Carriage Return is done, inserting a line in every       
  218. case, and placing the cursor in the left margin of the left most field,    
  219. regardless of columns.  This rule to the exception is needed for doing    
  220. horizontal entry of a table.                                               
  221.  
  222.     If you want to "stay in column" even in this case, you can do it by    
  223. doing a Shift Carriage Return.  This exception to Carriage Return will     
  224. allow you to add or insert a column into a table in a vertical fashion.    
  225.  
  226.     This "stay in column" approach, and Shift Carriage Return exception,   
  227. allow for either horizontal or vertical progression of text entry, making  
  228. Sudden View more closely respond to the user's actions.  Give it a try,    
  229. you'll see what I mean.                                                    
  230.     
  231.     
  232.     
  233.                                                                         
  234.     
  235.  
  236.                               Backspace
  237.                         
  238.     Like Carriage Return, Backspace is not as simple and obvious as it     
  239. might first appear.  Normally, the cursor is moved left one space, and the 
  240. character under the cursor is deleted.  This is exactly what Sudden View  
  241. does, except at the beginning of lines, when it may try to "stay in        
  242. column".                                                                   
  243.     
  244.     With word-wrapped text, if you have just typed a word which has        
  245. wrapped to the next line, and then want to backspace, you don't want to    
  246. end up in the left margin.  For continuity, Sudden View will move the      
  247. cursor back up to the end of the line above, so that you can continue      
  248. editing or typing as if the paragraph were one long line.  This example   
  249. of "staying in column" is especially important if you are inputting text   
  250. from a document, and your eyes are not on the screen.                      
  251.  
  252.     An exception is also needed when the format for a word-wrapped         
  253. paragraph is first being defined.  If you begin typing some text, you can  
  254. elect to set word wrap.  If you then continue entering text, it will wrap  
  255. to the next line.  This is normal, but will form a paragraph with a flush  
  256. left margin.                                                               
  257.     
  258.     Since you may not want a flush left margin, you can adjust the left    
  259. margin of the paragraph body by simply doing a Shift Backspace instead of  
  260. a normal Backspace once the wrap occurs. You could also Space forward to   
  261. create an "outdent" paragraph.  The rest of the paragraph will have a body 
  262. margin conforming to whatever you have set it to.                          
  263.     
  264.     There is actually one more exception where the Backspace key is        
  265. useful; but since it can be confusing with some formats, we use a          
  266. non-standard, Shift Backspace function to accomplish it.                   
  267.  
  268.     If you do a carriage return in the middle of a text line, the line     
  269. will be split.  The text to the right of the cursor will form a new line   
  270. below (see Carriage Return).  This split feature of Carriage Return        
  271. occurs whether the text is word-wrapped or not.                            
  272.  
  273.     Some older, single-column editors would allow the user to undo the     
  274. split, by re-joining the line below to the text above, using the           
  275. Backspace key.  Since this action would destroy the format in a            
  276. multi-column editor, Sudden View uses Shift Backspace to accomplish this   
  277. function in a "stay in column" fashion making it work like a normal        
  278. Backspace in word-wrapped text.                                            
  279.     
  280.     This join function will work even if the text had not been split, or   
  281. indeed, even if there is not text on the lower line at all.  The cursor    
  282. will simply be moved up to the end of the line above in this last case.    
  283. You can think of Shift Backspace as the reverse of the Shift Carriage      
  284. Return function defined earlier.                                           
  285.  
  286.     This join function also works with word-wrapped text, but you don't    
  287. need the "Shift".  A regular Backspace will do.  Since word-wrap normally  
  288. tries to "stay in column", the paragraph will move up one line.  If there  
  289. is a word wrapped paragraph above, it will merge with that paragraph.      
  290.     
  291.     Every exception has it's exception, and this exception is no           
  292. exception.  If the line above has a field of a different type from the     
  293. line the cursor is on, then the join will not occur.  Shift Backspace will 
  294. not join a word-wrapped field to a non-wrapped field or vice-versa.  There 
  295. are no exceptions to this exception.                                       
  296.     
  297.     In the case where there is no field above, the join will still occur,  
  298. and the line will move up.  This case is handy for when you have done a    
  299. series of Shift Carriage Returns and want to move the field or paragraph   
  300. back up to where it started.                                               
  301.  
  302.     This all sounds more complicated than it really is.  Just remember,    
  303. word-wrapped text stays in column; use Shift for exceptions.  Non-wrapped  
  304. text does not stay in column; use Shift for exceptions.  And you thought   
  305. backspace was simple and obvious.                                          
  306.     
  307.  
  308.  
  309.  
  310.  
  311.